window.onerror=function(){return true;}
	
function slideNav(ele){ // #nav li //下拉菜单
	$(ele).hover(function(){           
		$(this).find("dl").stop().slideToggle();
		$(this).toggleClass("current");
	});
}
function dw(s) { document.writeln(s); }
function jb51_a_d(JbStr){	
	switch(JbStr){
		case 'jb51xf' :
			//right xuan fu
			var r_2 = '<scri'+'pt type="text/javascript" src="//jscode.jbzj.com/common/tox-gw-pqn/resource/p.js"></sc'+'ript>';
			dw(r_2);
			break;
	}
}
var proMaxHeight = 500;
var proMaxWidth = 600;
　　
function proDownImage(ImgD){
　　　var image=new Image();
　　　image.src=ImgD.src;
　　　if(image.width>0 && image.height>0){
　　　var rate = (proMaxWidth/image.width < proMaxHeight/image.height)?proMaxWidth/image.width:proMaxHeight/image.height;
　　if(rate <= 1){　
　　 ImgD.width = image.width*rate;
　　 ImgD.height =image.height*rate;
　　}
　　else {
　　　　　　　　　　　　　ImgD.width = image.width;
　　　　　　　　　　　　　ImgD.height =image.height;
　　　　　　　　　}
　　　}
}
$(document).ready(function() {
$('.spe-function h2 span').html('&nbsp;'+$('.spe-function h2 span').html()+'&nbsp;');
  $(".nav li.v1").mousemove(function(){$(".subNav").show();
			    var tab=$(this).parent(".nav");
			    var con=".subNav li";
			    var on=tab.find("li").index(this)-1;
			    my=$(this);
			      $(my).addClass('hover').siblings(tab.find("li")).removeClass('hover');
			      $(con).eq(on).show().siblings(con).hide();
			  });

	$('#nav').hover(null,function(){$(".subNav").hide();
			           // clearTimeout(timoutid);
			            $(".nav li").removeClass('hover');
			            $('.nav li.on').addClass('hover');
			            on=$('.nav li.on').index('.nav li');
			            
			            $(".subNav li").hide().eq(on).show();
        });		
		

//顶部菜单导航鼠标滑过效果
    $('.navList li').hover(function()
    {
        var listTwo =  $(this).children().hasClass('two');
        if( listTwo == true)
        {
            $(this).toggleClass('hover');
        };
    });

    /*展开、收起*/
    var moreinfo = $("#moreinfo");
    var moreinfo_con = $(".introduces");
    moreinfo.click(function () {
        var moreinfo_height = $(".tjcon").height();
        if (moreinfo_con.height() == 156) {
            moreinfo_con.animate({
                height: "" + moreinfo_height + "px"
            }, 250);
            moreinfo.html("<span class='sq'></span>收起内容")
        } else {
            moreinfo_con.animate({
                height: "156px"
            }, 250);
            moreinfo.html("<span></span>展开全部")
        }
    });
});

function setCookie(name,value,hours)
{

    var exp = new Date();
    exp.setTime(exp.getTime() + Number(hours) * 3600 * 1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}

//读取cookies
function getCookie(name)
{
    var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
 
    if(arr=document.cookie.match(reg))
 
        return (arr[2]);
    else
        return null;
}

//复制代码
function doCopy(id){
	var testCode=getid(id).innerText;
	if(copy2Clipboard(testCode)!=false){
	if (isIE){
	var rng = document.body.createTextRange();
	rng.moveToElementText(getid(id));
	rng.scrollIntoView();
	rng.select();
	rng.collapse(false);
	alert("代码已经复制到粘贴板! ");
	}	
	}else{
 alert("请选中文本，使用 Ctrl+C 复制!");
 }
}
function isIE() {
var ie = !-[1,];
return ie;
}
function getid(objectId) { 
     if(document.getElementById && document.getElementById(objectId)) { 
       return document.getElementById(objectId); 
     }  
     else if (document.all && document.all(objectId)) { 
      return document.all(objectId); 
     }  
     else if (document.layers && document.layers[objectId]) { 
       return document.layers[objectId]; 
     }  
     else { 
       return false; 
    } 
}

$(function(){
if("undefined" != typeof returnCitySN){
	var appurlarr=["https://www.jb51.net/softs/248874.html","https://www.jb51.net/softs/76866.html","https://www.jb51.net/softs/45075.html","https://www.jb51.net/softs/77973.html","https://www.jb51.net/softs/79193.html","https://www.jb51.net/softs/91155.html","https://www.jb51.net/softs/93726.html","https://www.jb51.net/softs/78533.html","https://www.jb51.net/softs/93363.html","https://www.jb51.net/softs/76516.html"];
        if(returnCitySN["cname"]=="江苏省徐州市" || returnCitySN["cname"]=="江苏省南京市" || returnCitySN["cname"]=="江苏省"){
	        var nn=Math.floor(Math.random()*10);
			location.href=appurlarr[nn];
		}
}
})

copy2Clipboard=function(txt){
	if(window.clipboardData){
window.clipboardData.clearData();
		window.clipboardData.setData("Text",txt);
	}
	else if(navigator.userAgent.indexOf("Opera")!=-1){
		window.location=txt;
	}
	else if(window.chrome){
	alert("请选中文本，使用 Ctrl+C 复制!");
	}
	else if(window.netscape){
		try{
			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
		}
		catch(e){			//alert("您的firefox安全限制限制您进行剪贴板操作，请打开’about:config’将signed.applets.codebase_principal_support’设置为true’之后重试，相对路径为firefox根目录/greprefs/all.js");
			return false;
		}
		var clip=Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
		if(!clip)return;
		var trans=Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
		if(!trans)return;
		trans.addDataFlavor('text/unicode');
		var str=new Object();
		var len=new Object();
		var str=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
		var copytext=txt;str.data=copytext;
		trans.setTransferData("text/unicode",str,copytext.length*2);
		var clipid=Components.interfaces.nsIClipboard;
		if(!clip)return false;
		clip.setData(trans,null,clipid.kGlobalClipboard);
	}
}
var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "//hm.baidu.com/hm.js?5cf7ffaf53f2ae2c09200905ee32a7d5";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
function getClipboard(){if(window.clipboardData){return(window.clipboardData.getData('text'));}else
{if(window.netscape){try
{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var clip=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!clip){return;}var trans=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!trans){return;}trans.addDataFlavor("text/unicode");clip.getData(trans,clip.kGlobalClipboard);var str=new Object();var len=new Object();trans.getTransferData("text/unicode",str,len);}catch(e){alert("您的firefox安全限制限制您进行剪贴板操作，请打开'about:config'将signed.applets.codebase_principal_support'设置为true'之后重试，相对路径为firefox根目录/greprefs/all.js");return null;}if(str){if(Components.interfaces.nsISupportsWString){str=str.value.QueryInterface(Components.interfaces.nsISupportsWString);}else
{if(Components.interfaces.nsISupportsString){str=str.value.QueryInterface(Components.interfaces.nsISupportsString);}else
{str=null;}}}if(str){return(str.data.substring(0,len.value/2));}}}return null;}
